<?php
class Date {
	private $day;
	private $month;
	private $year;
	private $hour;
	private $minute;
	private $second;
	
	public function __construct($day, $month, $year, $hour = 0, $minute = 0, $second = 0) {
		$this->day = $day;
		$this->month = $month;
		$this->year = $year;
		$this->hour = $hour;
		$this->minute = $minute;
		$this->second = $second;
	}
	
	public function __toString() {
		return $this->day . '-' . $this->month . '-' . $this->year . ' ' . $this->hour . ':' . $this->minute . ':' . $this->second;
	}
}
?>